package im.xz.cn.xiacore.auth;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
public class Encode {
    public static byte[] SHAEncode(byte[] obj){
        MessageDigest md5;
        try {
            md5 = MessageDigest.getInstance("SHA");
            md5.update(obj);
            return md5.digest();
        } catch (NoSuchAlgorithmException e) {

            e.printStackTrace();
        }
        return null;
    }
}
